package com.eportal.service;

import java.io.Serializable;
import java.sql.Connection;
import java.util.List;

import com.eportal.DAO.BaseDAO;
import com.eportal.ORM.TermReadyView;

/** ϵͳ�û�����ҵ���߼��ӿ�ʵ�� */
public class AdminStlmpayServiceImpl implements AdminService {
	/** ͨ������ע��DAO���ʵ�� */
	BaseDAO dao;

	public BaseDAO getDao() {
		return dao;
	}
	public long sum(String sql){
		return dao.sum(sql);
	}
	public List findBySql(String sql){return dao.findBySql(sql);}
	public void delete(Object object){
		dao.delete(object);
	}
	
	public void updateDkAccount(int id){}
	public void setDao(BaseDAO dao) {
		this.dao = dao;
	}

	
	public int countAll(String clazz) {
		// TODO Auto-generated method stub
		return dao.countAll(clazz);
	}

	
	public int countQuery(String hql) {
		// TODO Auto-generated method stub
		return dao.countQuery(hql);
	}
	public void save(Object obj){
		dao.save(obj);
	}
	
	public void delById(Class clazz, Serializable id) {
		// TODO Auto-generated method stub
		dao.delById(clazz, id);
	}

	
	public Connection getConnection() {
		// TODO Auto-generated method stub
		return dao.getConnection();
	}

	
	public List listAll(String clazz) {
		// TODO Auto-generated method stub
		return dao.listAll(clazz);
	}

	
	public List listAll(String clazz, int pageNo, int pageSize) {
		// TODO Auto-generated method stub
		return dao.listAll(clazz, pageNo, pageSize);
	}

	
	public Object loadById(Class clazz, Serializable id) {
		// TODO Auto-generated method stub
		return dao.loadById(clazz, id);
	}

	
	public Object loadObject(String hql) {
		// TODO Auto-generated method stub
		return dao.loadObject(hql);
	}

	
	public List query(String hql) {
		// TODO Auto-generated method stub
		return dao.query(hql);
	}

	
	public List query(String hql, int pageNo, int pageSize) {
		// TODO Auto-generated method stub
		return dao.query(hql, pageNo, pageSize);
	}

	
	public void saveOrUpdate(Object obj) {
		// TODO Auto-generated method stub
		dao.saveOrUpdate(obj);
	}

	
	public int update(String hql) {
		// TODO Auto-generated method stub
		return dao.update(hql);
	}
	public void saveUser(TermReadyView ready){}
	
}
